Versions:

  • 0.42.1
  • 0.42.0
  • 0.41.1
  • 0.41.0
  • 0.40.5
  • 0.40.4
  • 0.40.3
  • 0.40.2
  • 0.40.1
  • 0.40.0
  • 0.39.9
  • 0.39.7
  • 0.39.6
  • 0.39.5
  • 0.39.4
  • 0.39.3
  • 0.39.2
  • 0.39.1
  • 0.38.7
  • 0.38.6
  • 0.38.5
  • 0.38.4
  • 0.38.3
  • 0.38.2
  • 0.38.1
  • 0.38.0
  • 0.37.0
  • 0.36.3
  • 0.36.2
  • 0.36.1
  • 0.35.0
  • 0.24.1
  • 0.24.0
  • 0.23.1
  • 0.23.0
  • 0.17.1
  • 0.6.2

ast-grep is a cross-platform Developer-Tools utility designed for high-performance, language-agnostic source-code analysis across very large codebases. Written in Rust and distributed as a single self-contained binary, the program exposes a command-line interface that accepts intuitive patterns resembling familiar grep syntax yet parses them into Abstract Syntax Trees, enabling symbol-aware searches that respect language semantics rather than plain text. Consequently, engineers can locate function calls, class declarations, or deprecated APIs with precision, then chain queries into automatic lint rules or large-scale refactoring campaigns. Typical use cases include enforcing corporate coding standards in CI pipelines, modernizing legacy frameworks by systematically rewriting deprecated constructs, and extracting telemetry about dependency usage across monorepos. Because it embeds tree-sitter parsers for more than thirty languages—ranging from JavaScript, TypeScript, and Python to Go, Rust, Java, C#, and Kotlin—the same invocation can be reused in polyglot organizations without additional plug-ins. Project maintainers have released thirty-seven numbered builds since inception; the current general-availability milestone, version 0.42.1, continues incremental performance tuning and expands configuration options for ignore files and output formatting. Users may define declarative rules in YAML to share team-wide checks, generate SARIF reports for GitHub security dashboards, or apply automatic fixes in place with colored diff previews. The lightweight binary starts instantly, supports parallel worker threads, and respects .gitignore boundaries by default, making it practical for pre-commit hooks or interactive editor integration. ast-grep is available for free on get.nero.com, with downloads provided via trusted Windows package sources such as winget, always delivering the latest version, and supporting batch installation of multiple applications.

Tags: